<include file="__THEME__/public_header" />
<!-- <script type="text/javascript" src="../Public/Js/json2select.js" ></script>
<script type="text/javascript" src="../Public/Js/group.info.form.js" ></script>
<link  href="../Public/group.css" rel="stylesheet" type="text/css"/> -->
<link href="__APP__/group.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__APP__/Js/json2select.js"></script> 
<script type="text/javascript" src="__APP__/Js/group.info.form.js"></script> 













<div class="breadcrumb"> <a href="{:U('group')}">小组首页</a>&gt
    <a>《创建小组》</a>
</div>
<div class="sk_main">

<div class="newpost">
<a href=""  class="quealltab onactive">创建小组</a>



</div>
<div class="sk_l2">
  <form name="addform" action="{:U('group/Index/doAdd')}" method="post" onsubmit="return group_info.check_form(this);" enctype="multipart/form-data">

<ul class="user-set-sz" style="padding-left:0px;margin-top:30px;width:100%">
     <li>
        <label class="label"><em>*</em> 小组名称：</label>
          <input name="name" value="{$groupinfo['name']}" class="user-width" style="border: 1px solid #cce4f4;" type="text" placeholder="">     
    </li>
       <li>
        <label class="label"><em>*</em> 分类：</label>
       <div class="c2" id="pid">
       		<select name="cid0">
       		<option value="">请选择</option>
       		<volist name="categrory" id="vo">
       			<option value="{$vo.a}" <php>if($_GET['fid'] == $vo['a']){</php>selected<php>}</php> >{$vo.t}</option>
       		</volist>
       		</select>
       </div>
      </li>
      
	  
	    <li>
        <label class="label"><em>*</em> 封面：</label>
           <div class="c2">
               <span class="left lh25">
                    <input class="text" type="file" id="logoxz" name="logo" value="浏览" onchange="handleFiles(this)" /><br />
                    <php>if($groupinfo['logourl']!=""){</php>
						<img src="{$groupinfo['logourl']}" id="logo_src" width="186" height="186" style="margin-top:10px;" />
                    <php>}</php>
                </span>
           </div>
      </li>
	  
	   <li>
        <label class="label"><em>*</em> 简介：</label>
	       <textarea id="" class="user-textarea"  name="intro" style="width:520px">{$groupinfo['intro']}</textarea>
      </li>
	  
	  
	    <li>
        <label class="label"><em>*</em> 公告：</label>
	       <textarea id="" class="user-textarea" name="announce" style="width:520px">{$groupinfo['announce']}</textarea>
      </li>
	  
	     <li>
        <label class="label"><em>*</em> 验证码：</label>
            <input name="verify" type="text" class="text" style="width:70px" id="verCode"/>
			  <img src="__ROOT__/public/captcha.php" id="verifyimg" class="alM" onclick="group_info.change_verify()"/>
              <a href="###" onclick="group_info.change_verify()" alt="换一张">看不清楚，换一个</a>

      </li>
	  
    
       <li>
        <label class="label">&nbsp;</label>
            <input type="hidden" name="dosubmit" value="1">
        <input class="user-submit" type="submit"  name="button" value="保 存">
      </li>
      </ul>
</form>


</div>

<div class="sk_r2">

</div>
<div class="sk_cl"></div>

</div>
































<div class="content_holder" style=" display:none">
<div class="content no_bg boxShadow"><!-- 内容 begin  -->
<include file="../Public/_mainNav" />
  <div class="main no_l"> <!-- 右侧内容 begin  -->
  <div class="mainbox"> 
      <include file="../Public/_isHotList" />
      <div class="mainbox_appC">
  <div class=page_title> <!-- page_title begin -->
    	<h2><span class="right fn f12px">
        <!--<a href="javascript:history.go(-1)">&lt;&lt;返回上一页</a>--></span>创建新的群</h2>
</div><!-- page_title end -->
  <!-- 切换标签 end  -->
  <div class="groupBox">
  <form name="addform" action="{:U('group/Index/doAdd')}" method="post" onsubmit="return group_info.check_form(this);" enctype="multipart/form-data">
    <ul class="add_group">
          <li>
          	<div class="c1"><font color="red">*</font>群名称：</div>
            <div class="c2">
              <input type="text" name="name" value="{$search_key}" class="text" style="width: 400px;" onblur="this.className='text';group_info.text_length(this,30);" onfocus="this.className='text2'" />
              <span id="group_name_tips" class="cRed pr5"></span>
            </div>
       	  </li>
          <li>
          	<div class="c1"><font color="red">*</font>群分类：</div>
            <div class="c2" id="pid"></div>
       	  </li>
          <li>
          	<div class="c1">群头像：</div>
            <div class="c2"><input type="file"  name="logo" />
            </div>
       	  </li>
          <li>
          	<div class="c1">群简介：</div>
            <div class="c2">
              <textarea rows="6" style="padding:0;overflow:auto;width:400px;height:100px" class="text" onblur="this.className='text';group_info.text_length(this,200);" onfocus="this.className='text2'" name="intro"></textarea>
              <span id="group_intro_tips" class="cRed pr5"></span>
            </div>
       	  </li>
          <!-- <li>
          	<div class="c1"><font color="red">*</font>群标签：</div>
            <div class="c2">
				<div><input name="tags" type="text" class="text" style="width:73%" /> <span id="tags_change" class="cRed pr5"></span><br />
            	<if condition="$reTags">热门推荐：
            	  <volist name="reTags" id="tag"><a href="javascript:;" onclick="group_info.add_tag(this)" title="添加标签">{$tag}</a>&nbsp;&nbsp;</volist>
            	</if></div>
                <div class="cGray2">最多设置5个，多个标签之间用英文逗号做间隔。设置标签可以让你的微群更容易被其他用户找到</div>
            </div>
       	  </li> -->
          <li>
          	<div class="c1"><font color="red">*</font>内容权限：</div>
            <div class="c2">
            	<div class="mb10"><label><input type="radio" style="margin-top: -3px;" name="type" value="open" checked="checked" />公开<span class="cGray2">（群组内容公开，所有用户可见）</span></label></div>
                <div><label><input type="radio" style="margin-top: -3px;" name="type" value="close" />私密<span class="cGray2">（群组内容私密，仅成员可见）</span></label></div>
            </div>
       	  </li>
          <li>
          	<div class="c1"><font color="red">*</font>验证码：</div>
            <div class="c2">
              <input name="verify" type="text" class="text" style="width:70px" id="verCode"/>
			  <img src="__ROOT__/public/captcha.php" id="verifyimg" class="alM" onclick="group_info.change_verify()"/>
              <a href="###" onclick="group_info.change_verify()" alt="换一张">看不清楚，换一个</a>
            </div>
       	  </li>
          <li>
          	<div class="c1">&nbsp;</div>
            <div class="c2">
            <input type="hidden" name="dosubmit" value="1">
            <input name="button" type="submit" class="btn_b" id="button" value="确定"/>

            </div>
       	  </li>
          </ul>
    </form>
  </div>
  <div class="c"></div>


</div>
<div class="c"></div>
</div>
</div><!-- 内容 end -->

</div>
</div>
<script>
    window.URL = window.URL || window.webkitURL;
    var fileElem = $("#logoxz");
    function handleFiles(obj) {
        var files = obj.files,
                img = new Image();
        if(window.URL){
            $('#logo_src').attr('src',window.URL.createObjectURL(files[0]))
        }else if(window.FileReader){
            //opera不支持createObjectURL/revokeObjectURL方法。我们用FileReader对象来处理
            var reader = new FileReader();

            $('#logo_src').attr('src',this.result)

        }else{
            //ie
            obj.select();
            obj.blur();
            var nfile = document.selection.createRange().text;
            document.selection.empty();
            img.src = nfile;
            $('#logo_src').attr('src',nfile)

            //fileList.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='image',src='"+nfile+"')";
        }
    }
</script>

<include file="__THEME__/public_footer" />
